package com.xqboss.apps.domain.user;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.user.WithdrawStatusEnum;
import com.xqboss.apps.enums.user.PayTypeEnum;
import com.xqboss.apps.enums.user.WithdrawWayEnum;
import com.xqboss.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 用户钱包提现表 sys_user_wallet_withdraw
 * @author Trent
 * @date 2023/8/15
 */
@Data
public class SysUserWalletWithdraw extends BaseTable {
    private static final long serialVersionUID = 1L;

    @TableId
    @Id
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 钱包ID
     */
    private Long walletId;
    /**
     * 提现方式
     */
    private WithdrawWayEnum withdrawWay;
    /**
     * 提现金额
     */
    private BigDecimal amount;
    /**
     * 提现手续费
     */
    private BigDecimal withdrawFee;
    /**
     * 提现手续费比例
     */
    private BigDecimal withdrawFeeRatio;
    /**
     * 使用的免费提现额度
     */
    private BigDecimal freeWithdrawAmount;
    /**
     * 实际到账金额
     */
    private BigDecimal actuallyArriveAmount;
    /**
     * 提现银行
     */
    private String bankName;
    /**
     * 银行姓名
     */
    private String bankUser;
    /**
     * 银行账户
     */
    private String bankAccount;
    /**
     * 支行信息
     */
    private String bankBranch;
    /**
     * 提现状态
     */
    private WithdrawStatusEnum status;
}
